/**
 * Copyright (c) 2009.kingbi.
 * All rights reserved.
 */

package com.kingbi.system.roleFunction.jsfBean;

import java.util.List;

import com.kingbi.system.roleFunction.model.RoleFunctionModel;
import com.kingbi.system.roleFunction.model.RoleFunction_ID;
import com.kingbi.util.jsf.ListPageBean;

/**
 * Class description goes here.
 * 
 * Created by Auto Code Produce System User: Date: 20091030 Time: 170342
 */

public class RoleFunctionDataBean extends ListPageBean
{


    /*
     * 角色编码
     */
    private String roleCode = "";

    /*
     * 功能编码
     */
    private String functionCode = "";

    /*
     * 功能权限
     */
    private String roleRight = "";

   

    public String getRoleCode()
    {
        return roleCode;
    }

    public void setRoleCode(String roleCode)
    {
        this.roleCode = roleCode;
    }

    public String getFunctionCode()
    {
        return functionCode;
    }

    public void setFunctionCode(String functionCode)
    {
        this.functionCode = functionCode;
    }

    public String getRoleRight()
    {
        return roleRight;
    }

    public void setRoleRight(String roleRight)
    {
        this.roleRight = roleRight;
    }

    public RoleFunctionModel getJsfModel()
    {
        RoleFunctionModel roleFunctionModel = new RoleFunctionModel();
        
        RoleFunction_ID roleFunID = new RoleFunction_ID();
        roleFunID.setRoleCode(this.roleCode);
        roleFunID.setFunctionCode(this.functionCode);
        
        roleFunctionModel.setRoleFunID(roleFunID);
        roleFunctionModel.setRoleRight(this.roleRight);
        return roleFunctionModel;
    }

    public void getJsfDataBean(RoleFunctionModel theModel)
    {
        this.setRoleCode(theModel.getRoleFunID().getRoleCode());
        this.setFunctionCode(theModel.getRoleFunID().getFunctionCode());
        this.setRoleRight(theModel.getRoleRight());
    }

    public void getEmptyJsfBean()
    {
        this.setRoleCode("");
        this.setFunctionCode("");
        this.setRoleRight("");
    }

}
